<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="./Promise.js"></script>
    <script>
    
   const p1=new Promise((resolve,reject)=>{
    reject(1)
   }).then(res=>{})
   .then(err=>{
 
    console.log(222,err);
  
   })
   .catch(err=>{
    console.log(333,err);
   }).catch(res=>{
       console.log(777,res);
   })


    </script>
</body>
</html>